package com.example.common

import android.view.View
import androidx.databinding.BindingAdapter
import com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer

@BindingAdapter("path")
fun gsy(video: StandardGSYVideoPlayer, path:String?) {
	video.setUpLazy(path,true,null,null,"")
	video.titleTextView.visibility = View.GONE
	video.backButton.visibility = View.GONE
	video.startButton.performClick()
	video.fullscreenButton.setOnClickListener {
		video.startWindowFullscreen(video.context,true,true)
	}
	video.isShowFullAnimation = true
}